/**
* 作者: chenlingzhi
* 日期: 2024-12-25 17:24:02
* 备注: iap礼包额外获得钻石配置表
*/
package com.motu.monstercity.server.game.commondata.iap;

import io.vertx.core.json.JsonObject;

public class IapDiamondModel {
	protected int id; // id
	protected int iapGift; // 礼包ID
	protected int buyTimes; // 购买次数
	protected float multiple; // 钻石倍数
	protected int gift; // 额外赠送钻石

	public IapDiamondModel() {
	}

	public IapDiamondModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		iapGift = obj.containsKey("iap_gift") ? obj.getInteger("iap_gift") : 0;
		buyTimes = obj.containsKey("buy_times") ? obj.getInteger("buy_times") : 0;
		multiple = obj.containsKey("multiple") ? obj.getFloat("multiple") : 0;
		gift = obj.containsKey("gift") ? obj.getInteger("gift") : 0;
	}

	public int getId() {
		return id;
	}

	public int getIapGift() {
		return iapGift;
	}

	public int getBuyTimes() {
		return buyTimes;
	}

	public float getMultiple() {
		return multiple;
	}

	public int getGift() {
		return gift;
	}

}
